-- GENERATED SPELL FOR [Sunseeker Channeler] --


function spell0_19505(pUnit, Event) --@Soul Channel,n/a--
pUnit:FullCastSpellOnTarget(34637,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19505', 6500, 1)
end

function spell1_19505(pUnit, Event) --@Sunseeker Blessing,Self--
pUnit:FullCastSpellOnTarget(34173,pUnit)
pUnit:RegisterEvent('Sorts_19505', 30304, 1)
end

function spell2_19505(pUnit, Event) --@Sunseeker Blessing,Self--
pUnit:FullCastSpellOnTarget(34222,pUnit)
pUnit:RegisterEvent('Sorts_19505', 599, 1)
end

function Sorts_19505(pUnit, Event)
local choix_sorts_19505 = math.random(0, 2)
if choix_sorts_19505 == 0 then
pUnit:RegisterEvent('spell0_19505', 1, 1)
end
if choix_sorts_19505 == 1 then
pUnit:RegisterEvent('spell1_19505', 1, 1)
end
if choix_sorts_19505 == 2 then
pUnit:RegisterEvent('spell2_19505', 1, 1)
end
end

function mob19505_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19505', math.random(1500, 3000), 1)
end

function mob19505_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19505_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19505_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19505, 1, 'mob19505_Action')
RegisterUnitEvent(19505, 2, 'mob19505_Leave')
RegisterUnitEvent(19505, 3, 'mob19505_Kill')
RegisterUnitEvent(19505, 4, 'mob19505_Die')
